package com.gdwhomework.chapter07.homework003;

public class Employee extends Worker {
    private double grade = 1.0;

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    public Employee(String name, double day_sal, int work_day, double grade) {
        super(name, day_sal, work_day);
        this.grade = grade;
    }

    @Override
    public void show_month_sal() {
        System.out.println("普通员工"+getName()+"的基本工资为："+get_month_sal());
    }

    @Override
    public double get_month_sal() {
        return super.get_month_sal()*getGrade();
    }
}
